<?php

use yii\helpers\StringHelper;


?>

<a class="news-item" href="/news/<?= $model->id ?>">
    <div class="news-item__img-container"><img src="<?= 'https://storage.yandexcloud.net/' . frontend\models\News::BUCKET_NAME . '/' . $model->prev_img; ?>"></div>
    <div class="news-item__date"><?= \Yii::$app->formatter->asDatetime($model->date_public, "d.MM.YYYY") ?></div>
    <div class="news-item__content"><?= StringHelper::truncate(strip_tags($model->content), 100) ?></div>
</a>